import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import "es6-promise";
import "whatwg-fetch";
import "./plugs/fetch";
import "./plugs/md5";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import { library } from "@fortawesome/fontawesome-svg-core";
import { 
  faChartLine,
  faCog,
  faThermometerHalf,
  faToolbox,
  faUserFriends,
  faVolumeUp,
  faHouseDamage,
  faDiceD6,
  faCapsules,
  faBriefcaseMedical,
  faCamera,
  faDollyFlatbed,
  faThLarge
} from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";

library.add(  
  faChartLine,
  faCog,
  faThermometerHalf,
  faToolbox,
  faUserFriends,
  faVolumeUp,
  faHouseDamage,
  faDiceD6,
  faCapsules,
  faBriefcaseMedical,
  faCamera,
  faDollyFlatbed,
  faThLarge
);

Vue.component("font-awesome-icon", FontAwesomeIcon);

 window.urlApi="http://nlp.lovechuangchuang.com/api/";
//  console.log(hex_md5("123456"));
Vue.use(ElementUI);
let event = new Vue();
Vue.prototype.event = event;
Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");
